package com.auxgroup.hr.front.dao.domain;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 * @author lvliuhao 
 * @version 创建时间：2018年5月26日 下午5:13:59 
 * 类说明 
 */
public class EmplPhotoPrimary implements Serializable {
	
	private static final long serialVersionUID = 1348169656727087103L;

	private String emplid;
	
	private String photoSizename;

	public String getEmplid() {
		return emplid;
	}

	public void setEmplid(String emplid) {
		this.emplid = emplid;
	}

	public String getPhotoSizename() {
		return photoSizename;
	}

	public void setPhotoSizename(String photoSizename) {
		this.photoSizename = photoSizename;
	}

	public EmplPhotoPrimary(){}
	
	public EmplPhotoPrimary(String emplid,String photoSizename){
		this.emplid = emplid;
		this.photoSizename = photoSizename;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((emplid == null) ? 0 : emplid.hashCode());
		result = prime * result
				+ ((photoSizename == null) ? 0 : photoSizename.hashCode());
		return result;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		EmplPhotoPrimary other = (EmplPhotoPrimary) obj;
		if (emplid == null) {
			if (other.emplid != null)
				return false;
		} else if (!emplid.equals(other.emplid))
			return false;
		if (photoSizename == null) {
			if (other.photoSizename != null)
				return false;
		} else if (!photoSizename.equals(other.photoSizename))
			return false;
		return true;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	
}
 